/**
 * Created by Administrator on 2017/2/27.
 */
/**
 * 练习
 * @param ctx
 * @param next
 * @returns {Promise.<void>}
 */
var fn_hello = async (ctx,next)=>{
    let name = ctx.params.name;
    ctx.body = `<h1>hello, ${name}!</h1>`
}
/**
 * 暴露函数接口
 * @type {{GET/: ((p1:*, p2:*))}}
 */
module.exports = {
    'GET /hello/:name':fn_hello
}